You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// (a) A prime number may be defined as any number that has only two factors, the digit 1 and the number itself. Using this definition, write down a computer solution that can allow a number to entered as input and output a message indicating whether or not the given number is a prime. Do not assume any pre-defined function.